package com.config;

import com.entity.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MySpringConfiguration {

    @Bean(value="p1")
    public Person getPerson(){
        return new Person("宋小宝","男","2002-10-01","辽宁省铁岭市");
    }
}
